package by.bsu.overload;

/**
 * Created by A.Aplevich on 06.03.2015.
 */
public class DemoOverload {
    public static void  printArgCount(Object... args) {
        System.out.println("Object args: " + args.length);
    }

    public static void printArgCount(Integer[]... args) {
        System.out.println("Integer[] args: " + args.length);
    }

    public static void printArgCount(int... args) {
        System.out.printf("int args: " + args.length);
    }

    public static void main(String[] args) {
        Integer[] i = {1, 2, 3, 4, 5};
        printArgCount(7, "No", true, null);
        printArgCount(i, i, i);
        printArgCount(i, 4, 71);
        printArgCount(i);
        //printArgCount(5, 7);
        //printArgCount();
    }
}
